package com.smart.modules.genealogy.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smart.system.common.base.BaseEntity;

/**
 * 家谱对象 genealogy
 */

public class Genealogy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 逻辑删除标识(1:已删除;0:未删除) */
    @TableLogic
    private Long deleted;

    /** 家谱内容 */

    private String genealogyContent;

    /** 家谱名称 */

    private String genealogyName;

    /** 家谱ID */
    private Long genealogyId;


    private Long createBy;
    private Long updateBy;

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Long getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Long updateBy) {
        this.updateBy = updateBy;
    }

    public void setDeleted(Long deleted)
    {
        this.deleted = deleted;
    }

    public Long getDeleted()
    {
        return deleted;
    }
    public void setGenealogyContent(String genealogyContent)
    {
        this.genealogyContent = genealogyContent;
    }

    public String getGenealogyContent()
    {
        return genealogyContent;
    }
    public void setGenealogyName(String genealogyName)
    {
        this.genealogyName = genealogyName;
    }

    public String getGenealogyName()
    {
        return genealogyName;
    }
    public void setGenealogyId(Long genealogyId)
    {
        this.genealogyId = genealogyId;
    }

    public Long getGenealogyId()
    {
        return genealogyId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("updateBy", getUpdateBy())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("createTime", getCreateTime())
                .append("deleted", getDeleted())
                .append("genealogyContent", getGenealogyContent())
                .append("genealogyName", getGenealogyName())
                .append("genealogyId", getGenealogyId())
                .toString();
    }
}
